package com.zmx.user.entity;

import com.zmx.common.common.entitys.BaseEntity;
import lombok.Data;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author zhaomxr
 * null
 */
@Data
@Entity
@Table(name = "member_receiver")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper=true)
@Inheritance(strategy = InheritanceType.JOINED)
public class MemberReceiver extends BaseEntity {

	/**
	 * 详细地址
	 */
	@Column(name = "address")
	private String address;

	/**
	 * 地区
	 */
	@Column(name = "area_name")
	private String areaName;

	/**
	 * 收货人
	 */
	@Column(name = "consignee")
	private String consignee;

	/**
	 * 是否默认地址
	 */
	@Column(name = "is_default")
	private Boolean isDefault;

	/**
	 * 电话
	 */
	@Column(name = "phone")
	private String phone;

	/**
	 * 邮编
	 */
	@Column(name = "zip_code")
	private String zipCode;

	/**
	 * 地区id
	 */
	@Column(name = "area")
	private Long area;

	/**
	 * 用户id
	 */
	@Column(name = "member_id")
	private Long memberId;


}
